package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {
    void save(TravelComment travelComment);
    void update(TravelComment travelComment);
    void delete(String id);
    TravelComment get(String id);
    List<TravelComment> listAll();

    /**
     * 添加游记评论
     * @param travelComment
     */
    void addComment(TravelComment travelComment);

    /**
     * 列表
     * @param id
     * @return
     */
    List<TravelComment> query(String id);

    /**
     * 获取最新的评论前10（普通评论）
     * @return
     */
    List<TravelComment> getCommentsNew10();
}
